package cn.xbtop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/6/7 8:59
 */
@Controller
public class SysController {


    /**
     * 跳转首页
     * @return
     */
    @RequestMapping("/index")
    public String index(){
        return "main/index";
    }

    /**
     * 跳转登陆
     * @return
     */
    @RequestMapping("/login")
    public String login(){
        return "main/login";
    }

    /**
     * 跳转注册
     * @return
     */
    @RequestMapping("/reg")
    public String reg(){
        return "main/reg";
    }

    /**
     * 登陆
     * @return
     */
    @RequestMapping("/toLogin")
    public String toLogin(String username,String password){


        return "main/main";
    }

}
